import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "amfe-flexible";
import "./lib/MUI/css/mui.min.css";
import "./lib/MUI/css/icons-extra.css";
import axios from "axios";
import moment from "moment";
import VueLazyLoad from "vue-lazyload";
import {
  /* eslint-disable no-unused-vars */
  Style,
  Button,
  Slide,
  Toast
} from 'cube-ui'
Vue.use(VueLazyLoad, {
  preLoad: 1.3,
  error: 'dist/error.png',
  loading: 'dist/loading.gif',
  attempt: 1
});
Vue.use(Button);
Vue.use(Slide);
Vue.use(Toast);
Vue.prototype.$axios = axios;

Vue.config.productionTip = false;


Vue.filter("dataFormat",function(dataStr , pattern="YYYY-MM-DD HH:mm:ss"){
  return moment(dataStr).format(pattern);
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
